import re
import ast
from setuptools import find_packages, setup


def get_version_string():
    global version
    with open("vnsumscope/__init__.py", "rb") as f:
        version_line = re.search(
            r"__version__\s+=\s+(.*)", f.read().decode("utf-8")
        ).group(1)
        return str(ast.literal_eval(version_line))

setup(
    name='vnsumscope',
    version=get_version_string(),
    description='Bond verison based on vnpy',
    author='vnsumscope',
    author_email='long.ma@sumscope.com',
    install_requires=[],
    packages=find_packages(exclude=[]),
    package_data={"": [
      "*.ico",
      "*.ini",
      "*.dll",
      "*.so",
      "*.pyd",
      "lib*so*",
    ]},
    platforms=["all"],
    classifiers=[
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Natural Language :: Chinese (Simplified)',
        'Programming Language :: Python :: 3.7',
        'Topic :: Software Development :: Libraries'
    ],
)